package com.neusoft.sysdata.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neusoft.sysdata.entity.SmRole;
import com.neusoft.sysdata.mapper.SmRoleMapper;
import com.neusoft.sysdata.service.ISmRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("slave")
public class SmRoleServiceImpl extends ServiceImpl<SmRoleMapper, SmRole> implements ISmRoleService {

    @Autowired
    private SmRoleMapper smRoleMapper;

    /**
     * 查询角色信息
     */
    @Override
    public List<SmRole> selectRoleInfo(String code) {
        return this.smRoleMapper.selectRoleInfo(code);
    }
}
